package com.xuliucar.car.app

import android.app.Application
import android.content.Intent
import com.cangmaomao.network.request.config.Config
import com.cangmaomao.network.request.cookie.AbsCookieJar
import com.xuliucar.car.service.RecordService

class App : Application() {

    companion object {
        var mPenName = "SmartPen"
        var mFirmWare = "B736_OID1-V10000"
        var mMCUFirmWare = "MCUF_R01"
        var mBTMac = "00:00:00:00:00:2F"
        var mBattery = 100
        var mCharging = false
        var mUsedMem = 0
        var mBeep = true
        var mPowerOnMode = true
        var mPowerOffTime = 20
        var mTimer: Long = 1262275200 // 2010-01-01 00:00:00
        //public static String mTimer = "2010-01-01 00:00:00";
        var mPenSens = 0
        var tmp_mPenName: String? = null
        var tmp_mBeep: Boolean = false
        var tmp_mPowerOnMode: Boolean = false
        var tmp_mPowerOffTime: Int = 0
        var tmp_mTimer: Long = 0
        var tmp_mPenSens: Int = 0
    }

    override fun onCreate() {
        super.onCreate()
        Config.S_HTTP_ROOT_URL = "http://120.76.246.196:8081/api/"
        AbsCookieJar.mContext = this
        startService(Intent(this, RecordService::class.java))
    }


}